import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {RoutingModule} from './routing.module';

import {AppComponent} from './app.component';
import {HeaderComponent} from "./pages/header.component";
import {FooterComponent} from "./pages/footer.component";
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
import {HttpClientModule} from "@angular/common/http";
import {CoreModule} from "./providers/core/core.module";
import {SharedModule} from "./shared/shared.module";
import {LayoutModule} from "./pages/layout.module";
import {MarkdownService, MarkedOptions} from "ngx-markdown";
import {LeaveHomeGuard} from "./guards/leaveHome.guard";


@NgModule({
    declarations: [
        AppComponent,
        HeaderComponent,
        FooterComponent,
    ],
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        HttpClientModule,
        RoutingModule,
        CoreModule,
        SharedModule,
        LayoutModule,
    ],
    providers: [
        MarkdownService,
        MarkedOptions,
        LeaveHomeGuard
    ],
    bootstrap: [AppComponent]
})
export class AppModule {
}
